package com.voltmao.persistent.model;

import org.mybatis.annotation.Field;
import org.mybatis.annotation.Table;

import java.io.Serializable;
import java.util.Date;

/**
 * sys_region
 */
@Table(name="sys_region")
public class SysRegion implements Serializable {
    /**
     * dataId
     */
    public static final String DATAID = "dataId";

    /**
     * dataId
     */
    @Field(columnName="data_id", jdbcType="VARCHAR", javaType=String.class, length=36, scale=0)
    private String dataId;

    /**
     * 区域名称
     */
    public static final String REGIONNAME = "regionName";

    /**
     * 区域名称
     */
    @Field(columnName="region_name", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String regionName;

    /**
     * 级别
     */
    public static final String LEVEL = "level";

    /**
     * 级别
     */
    @Field(columnName="level", jdbcType="INTEGER", javaType=Integer.class, length=10, scale=0)
    private Integer level;

    /**
     * 父级行政区划代码
     */
    public static final String PCODE = "pCode";

    /**
     * 父级行政区划代码
     */
    @Field(columnName="p_code", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String pCode;

    /**
     * 行政区划代码
     */
    public static final String CODE = "code";

    /**
     * 行政区划代码
     */
    @Field(columnName="code", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String code;

    /**
     * areaCode
     */
    public static final String AREACODE = "areaCode";

    /**
     * areaCode
     */
    @Field(columnName="area_code", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String areaCode;

    /**
     * 省名称
     */
    public static final String PROVINCENAME = "provinceName";

    /**
     * 省名称
     */
    @Field(columnName="province_name", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String provinceName;

    /**
     * 市名称
     */
    public static final String CITYNAME = "cityName";

    /**
     * 市名称
     */
    @Field(columnName="city_name", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String cityName;

    /**
     * districtName
     */
    public static final String DISTRICTNAME = "districtName";

    /**
     * districtName
     */
    @Field(columnName="district_name", jdbcType="VARCHAR", javaType=String.class, length=50, scale=0)
    private String districtName;

    /**
     * isDel
     */
    public static final String ISDEL = "isDel";

    /**
     * isDel
     */
    @Field(columnName="is_del", jdbcType="INTEGER", javaType=Integer.class, length=10, scale=0)
    private Integer isDel;

    /**
     * createDate
     */
    public static final String CREATEDATE = "createDate";

    /**
     * createDate
     */
    @Field(columnName="create_date", jdbcType="TIMESTAMP", javaType=Date.class, length=19, scale=0)
    private Date createDate;

    /**
     * updateDate
     */
    public static final String UPDATEDATE = "updateDate";

    /**
     * updateDate
     */
    @Field(columnName="update_date", jdbcType="TIMESTAMP", javaType=Date.class, length=19, scale=0)
    private Date updateDate;

    private static final long serialVersionUID = 1L;

    /**
     * @return dataId
     *         dataId
     */
    public String getDataId() {
        return dataId;
    }

    /**
     * @param dataId
     *         dataId
     */
    public void setDataId(String dataId) {
        this.dataId = dataId == null ? null : dataId.trim();
    }

    /**
     * @return regionName
     *         区域名称
     */
    public String getRegionName() {
        return regionName;
    }

    /**
     * @param regionName
     *         区域名称
     */
    public void setRegionName(String regionName) {
        this.regionName = regionName == null ? null : regionName.trim();
    }

    /**
     * @return level
     *         级别
     */
    public Integer getLevel() {
        return level;
    }

    /**
     * @param level
     *         级别
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    /**
     * @return pCode
     *         父级行政区划代码
     */
    public String getpCode() {
        return pCode;
    }

    /**
     * @param pCode
     *         父级行政区划代码
     */
    public void setpCode(String pCode) {
        this.pCode = pCode == null ? null : pCode.trim();
    }

    /**
     * @return code
     *         行政区划代码
     */
    public String getCode() {
        return code;
    }

    /**
     * @param code
     *         行政区划代码
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /**
     * @return areaCode
     *         areaCode
     */
    public String getAreaCode() {
        return areaCode;
    }

    /**
     * @param areaCode
     *         areaCode
     */
    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode == null ? null : areaCode.trim();
    }

    /**
     * @return provinceName
     *         省名称
     */
    public String getProvinceName() {
        return provinceName;
    }

    /**
     * @param provinceName
     *         省名称
     */
    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName == null ? null : provinceName.trim();
    }

    /**
     * @return cityName
     *         市名称
     */
    public String getCityName() {
        return cityName;
    }

    /**
     * @param cityName
     *         市名称
     */
    public void setCityName(String cityName) {
        this.cityName = cityName == null ? null : cityName.trim();
    }

    /**
     * @return districtName
     *         districtName
     */
    public String getDistrictName() {
        return districtName;
    }

    /**
     * @param districtName
     *         districtName
     */
    public void setDistrictName(String districtName) {
        this.districtName = districtName == null ? null : districtName.trim();
    }

    /**
     * @return isDel
     *         isDel
     */
    public Integer getIsDel() {
        return isDel;
    }

    /**
     * @param isDel
     *         isDel
     */
    public void setIsDel(Integer isDel) {
        this.isDel = isDel;
    }

    /**
     * @return createDate
     *         createDate
     */
    public Date getCreateDate() {
        return createDate;
    }

    /**
     * @param createDate
     *         createDate
     */
    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    /**
     * @return updateDate
     *         updateDate
     */
    public Date getUpdateDate() {
        return updateDate;
    }

    /**
     * @param updateDate
     *         updateDate
     */
    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}